package com.sgb.goods.view.adapter;

import androidx.databinding.ViewDataBinding;

import com.chad.library.adapter.base.BaseViewHolder;
import com.sgb.goods.BR;
import com.sgb.goods.R;
import com.sgb.goods.entity.BrandManagerEntity;
import com.sgb.goods.utils.base.adapter.BaseCommonAdapter;

/**
 * 品牌管理适配器
 * @author cyj
 */
public class BrandManagerAdapter extends BaseCommonAdapter<BrandManagerEntity> {

    public BrandManagerAdapter() {
        super(R.layout.goods_item_brand_manager, BR.viewModel);
    }

    @Override
    protected void convert(BaseViewHolder baseHolder, ViewDataBinding dataBinding, BrandManagerEntity entity) {
        baseHolder.addOnClickListener(R.id.tv_edit);
        baseHolder.addOnClickListener(R.id.tv_delete);
    }
}
